Under the right circumstances, xenconsoled will corrupt its internal
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 16 Aug 2005 07:06:10 +0000 (07:06 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 16 Aug 2005 07:06:10 +0000 (07:06 +0000)
commit12ef0a954828fabf654cb360c65a72905ceaaf7e
tree49018a7ce365b8e5337bd4bddef98488cbac6a0a
parent3168022e9e290d53de28b9e2d9fb3aa906c1ab92
Under the right circumstances, xenconsoled will corrupt its internal
list of domains causing a SEGV.  This is usually characterized by a
rapid number of creations/destructions.  The attached patch fixes this.

1) Fix uninitialized next pointer.  This could sometimes cause xenconsoled to
   SEGV on an invalid domain pointer
2) Fix race condition in iterating domain list where removing a domain in a
   callback could lead to the iterators becoming invalid.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
tools/console/daemon/io.c